#include "TimeDialog.h"

TimeDialog::TimeDialog(void)
{
	//初始化界面
	setupUi (this);
	//信号与槽的连接
	connect (m_btnTime, SIGNAL(clicked()),
			this, SLOT(timeClicked()));
}

void TimeDialog::timeClicked (void)
{
	QString str = QTime::currentTime().toString("hh:mm:ss");
	m_labTime->setText (str);
}

